package com.foreverwin.jzymes.production.fqc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.fqc.mapper.FqcCheckBoxMapper;
import com.foreverwin.jzymes.production.fqc.domain.FqcCheckBox;
import com.foreverwin.jzymes.production.fqc.service.IFqcCheckBoxService;

/**
 * FQC检验箱号清单 服务层实现
 * 
 * @author ervin
 * @date 2019-04-08
 */
@Service
public class FqcCheckBoxServiceImpl implements IFqcCheckBoxService
{
	@Autowired
	private FqcCheckBoxMapper fqcCheckBoxMapper;

	/**
     * 查询FQC检验箱号清单信息
     * 
     * @param handle FQC检验箱号清单ID
     * @return FQC检验箱号清单信息
     */
    @Override
	public FqcCheckBox selectFqcCheckBoxById(String handle)
	{
	    return fqcCheckBoxMapper.selectFqcCheckBoxById(handle);
	}
	
	/**
     * 查询FQC检验箱号清单列表
     * 
     * @param fqcCheckBox FQC检验箱号清单信息
     * @return FQC检验箱号清单集合
     */
	@Override
	public List<FqcCheckBox> selectFqcCheckBoxList(FqcCheckBox fqcCheckBox)
	{
	    return fqcCheckBoxMapper.selectFqcCheckBoxList(fqcCheckBox);
	}
	
    /**
     * 新增FQC检验箱号清单
     * 
     * @param fqcCheckBox FQC检验箱号清单信息
     * @return 结果
     */
	@Override
	public int insertFqcCheckBox(FqcCheckBox fqcCheckBox)
	{
	    return fqcCheckBoxMapper.insertFqcCheckBox(fqcCheckBox);
	}
	
	/**
     * 修改FQC检验箱号清单
     * 
     * @param fqcCheckBox FQC检验箱号清单信息
     * @return 结果
     */
	@Override
	public int updateFqcCheckBox(FqcCheckBox fqcCheckBox)
	{
	    return fqcCheckBoxMapper.updateFqcCheckBox(fqcCheckBox);
	}

	/**
     * 删除FQC检验箱号清单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteFqcCheckBoxByIds(String ids)
	{
		return fqcCheckBoxMapper.deleteFqcCheckBoxByIds(ids.split(","));
	}
	
}
